<?php

/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/**
 * Description of User
 *
 * @author Tartharia
 */
class User extends CActiveRecord
{
    protected $id, $status;
    public $password, $firstname, $surname, $email, $userole;


    public static function model($className=__CLASS__)
    {
        return parent::model($className);
    }
    
    public function tableName()
    {
        return '{{users}}';
    }
    
    public function scopes() {
        return array(
            login => array(
                'select' => ('id,email,password,firstname')
            )
        );
    }
    
    public function getUserId()
    {
        return $this->id;
    }
}

?>
